import * as React from "react";
const { useRef } = React;

const fakeRef = (value) => {
  const obj = {};

  Object.defineProperty(obj, "current", {
    get() {
      return value;
    },
    set(newValue) {
      debugger;
      value = newValue;
    },
  });
  return obj;
};
const RefFn = () => {
  const divRef = useRef(null);
  return (
    <div ref={divRef}>
      <h1>jflksadjflk</h1>
      111
    </div>
  );
};

export default RefFn;
